<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            background-color: aqua;
        }
    </style>
    <script>
        // window.onload(property){
        //     // var divs=get
        // }
    </script>
</head>
<body>
    <div></div>



    <!-- <script>
        //弹出确认对话框，单击确定，返回true
        //访问全局对象的属性和方法   window.属性名
        //为了简化代码，可省略window.
        if(window.confirm('确认删除？')){
            alert('删除');
        }else{
            alert('取消');
        }
    </script> -->
</body>
</html>